// Ask the user for some data and write the data to a file
#include <iostream>
#include <string>
#include <fstream>

int main()
{
  int age;
  std::string first_name, last_name;

  // Get the data from the user:
  std::cout << "What is your first name, last name, and age?\n";
  std::cin >> first_name >> last_name >> age;

  // Create a file and write the data to the file:
  std::ofstream output_file("out.txt");

  output_file << first_name << "\n" << last_name << "\n"
	      << age << std::endl;

  return 0;
}
